function getDay (time) {
  let n = time.getFullYear();
  let y = time.getMonth() + 1;
  let d = time.getDate();
  let timeStr = n + "-" + y + "-" + d;
  return timeStr;
}
function getTime (time) {
  let n = time.getFullYear();
  let y = time.getMonth() + 1;
  let d = time.getDate();
  let h = time.getHours();
  let f = time.getMinutes();
  let m = time.getSeconds();
  let timeStr = `${n}-${y}-${d} ${h}:${f}:${m}`;
  return timeStr;
}
export default {
  getDay,
  getTime,
};
